package jllowrey.model;

import java.util.ArrayList;

/**
 * Line, A line representing a choice
 * @author J Lowrey
 *
 */
public class Line {

	/** the name of the choice */
	String choice;
	/** the position of the choice in an arraylist */
	int position;
	/** An array list of edges that make contact with the line   */
	ArrayList<Edge> edges = new ArrayList<Edge>();
	//Edge e = new Edge(2, 3, 80);
	

	/**
	 * Line Constructor
	 * 
	 * @param n, the position of the Line
	 */
	public Line(int n){
		this.position = n;
		this.choice = "";
	//	this.edges.add(e);
	}
	
	
	/**
	 * nextEdge, returns the next edge(moving vertically own the line) that adjoins the line.
	 * @param n, the current edge
	 * @return
	 */
//	public Edge nextEdge( int n){
//		
//		return null;
//	}

/** getter*/
	public String getChoice() {
		return choice;
	}

	/** setter*/
	public void setChoice(String choice) {
		this.choice = choice;
	}
	/** getter*/
	public ArrayList<Edge> getEdges() {
		return edges;
	}

}